package cn.com.msui.service.identity;

import java.util.List;

import cn.com.msui.domain.identity.Role;
import cn.com.msui.service.BaseService;

/**
 * 与角色相关的服务接口
 * 
 * @author Yuegz
 * 
 */
public abstract class RoleService extends BaseService {

	/**
	 * 获取子角色列表
	 * 
	 * @param role
	 * @return
	 * @throws Exception
	 */
	public abstract List<Role> getChildrenRoles(Role role) throws Exception;

	/**
	 * 添加角色
	 * 
	 * @param role
	 * @throws Exception
	 */
	public abstract void addRole(Role role)throws Exception;

	/**
	 * 修改角色
	 * 
	 * @param role
	 * @throws Exception
	 */
	public abstract void modifyRole(Role role)throws Exception;

	/**
	 * 删除一个角色
	 * 
	 * @param role
	 * @throws Exception
	 */
	public abstract void removeRole(Role role)throws Exception;
}
